<template>
  <div>
    <el-button type="text" @click="toBack">返回</el-button>
    <el-tabs v-model="activeName">
      <el-tab-pane label="基本信息" name="info" :lazy="true">
        <Info></Info>
      </el-tab-pane>
      <el-tab-pane label="订单信息" name="order" :lazy="true">
        <Order></Order>
      </el-tab-pane>
      <el-tab-pane label="服务地址" name="address" :lazy="true">
        <Address></Address>
      </el-tab-pane>
  </el-tabs>
  </div>
</template>

<script>
//导入组件
import Info from './info.vue'
import Order from './order.vue'
import Address from './address.vue'

export default {
  components:{
    Info,
    Order,
    Address,
  },
  data() {
    return {
      activeName:'info',
    };
  },
  computed: {},
  methods: {
    //返回到上一页
    toBack(){
      this.$router.go(-1);
    }
  },
  created() {
    console.log(this.$route.params.id);
  },
  mounted() {}
};
</script>
<style>
</style>